package com.wyl.pmd.rule.performance;

public class SimplifyStartsWith {

	boolean checkIt(String x) {
		return x.startsWith("a"); // bad
	}

	boolean fasterCheckIt(String x) {
		return x.charAt(0) == 'a'; // good
	}

}
